<?php
/**
 * Created by PhpStorm.
 * User: coffee
 * Date: 2018/1/2
 * Time: 上午9:49
 */

namespace App\Models;


use Illuminate\Database\Eloquent\SoftDeletes;

class EventStudentCalendarPresent extends BaseModels
{
    use SoftDeletes;

    protected $table = 'event_student_calendar_present';
    protected $primaryKey = 'id';
    protected $fillable = ['student_id', 'event_id'];
    protected $hidden = ['id', 'deleted_at'];

    const EVENT_ID = 1000;          //  2018送年历

    // 0 -> [1,2] -> 3 -> 4
    const STATUS_Allow = 0;         // 创建  只能通过助教创建，之后用户才可以申请
    const STATUS_Created = 1;       // 用户申请完
    const STATUS_Prohibit = 2;      // 禁止申请
    const STATUS_Post = 3;          // 已邮寄
    const STATUS_Success = 4;       // 完成
    const STATUS_Exception = 5;     // 异常

    public function getId()
    {
        return $this->id;
    }

    public function eventInfo()
    {
        return $this->belongsTo(EventInfo::class, 'event_id');
    }

    public function getStudentId()
    {
        return $this->student_id;
    }

    public function setStudentId($id)
    {
        $this->student_id = $id;
    }

    public function getEventId()
    {
        return $this->event_id;
    }

    public function setEventId($id)
    {
        $this->event_id = $id;
    }

    public function getStatus()
    {
        return $this->status;
    }

    public function setStatus($val)
    {
        $this->status = $val;
    }

    public function getName()
    {
        return $this->name;
    }

    public function setName($name)
    {
        $this->name = $name;
    }

    public function getTelephone()
    {
        return $this->telephone;
    }

    public function setTelephone($telephone)
    {
        $this->telephone = $telephone;
    }

    public function getAddress()
    {
        return $this->address;
    }

    public function setAddress($address)
    {
        $this->address = $address;
    }

    public function getProvince()
    {
        return $this->province;
    }

    public function setProvince($value)
    {
        $this->province = $value;
    }

    public function getCity()
    {
        return $this->city;
    }

    public function setCity($value)
    {
        $this->city = $value;
    }

    public function getAdminId()
    {
        return $this->admin_id;
    }

    public function setAdminId($val)
    {
        $this->admin_id = $val;
    }

    public function getExpressId()
    {
        return $this->express_id;
    }
    public function setExpressId($val)
    {
        $this->express_id = $val;
    }
}